/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.cput.ac.concepts.inherit.inheritviolation.conf;

import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Bean;
import za.cput.ac.concepts.inherit.inheritviolation.impl.Child;
import za.cput.ac.concepts.inherit.inheritviolation.impl.Parent;

/**
 *
 * @author Ilyaas Khatib
 */
@Configurable
public class AppConfig {

    private static class InheritViolation {

        public InheritViolation() {
        }
    }
    @Bean
    public Child c(){
        return new Child();
    }
    @Bean
    public Parent p(){
        return new Parent();
    }
    @Bean
    public InheritViolation iv(){
        return new InheritViolation();
    }
}
